home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / rewrite.zip / REWRITE.DOC < prev    next >
Text File  |  1989-10-23  |  3KB  |  79 lines

  1. REWRITE is a program that performs one simple function. It reads
  2. a 360K floppy disk and rewrites it exactly, a track at a time.
  3. Since a 360K floppy has 40 tracks, 9 sectors per track, and 2
  4. sides, that's 720 sectors. The purpose of this program is to
  5. render 360K floppies that were written in a 1.2M drive
  6. universally readable. Depending on slight differences in
  7. alignment, some 360K drives cannot reliably read and write disks
  8. formatted and written to by 1.2M drives. Disks formatted and
  9. written to by 360K drives can be read by all others.
  10.  
  11. This program assumes that you have found one 360K drive that can
  12. read the disks. For example, in my machine, the B: drive can, the
  13. A: drive can't. If the floppy was originally formatted on a 360K
  14. drive, then only the data needs to be rewritten. Put the floppy
  15. in the compatible drive and enter the command:
  16.  
  17.         REWRITE A:   or    REWRITE B:
  18.  
  19. The case of the letter is not important. The computer will now
  20. read the disk and rewrite it so that any drive can now read the
  21. disk.
  22.  
  23. If the disk was originally formatted on a 1.2M drive, enter the F
  24. switch:
  25.  
  26.         REWRITE A: /F (case not important).
  27.  
  28. REWRITE will read each track, reformat it, and then rewrite the
  29. data. 
  30.  
  31. The program will abort if the disk was not formatted as 360K. It
  32. will abort if you entered a drive other than A or B, if the disk
  33. is write protected, if the disk is unreadable, if the drive door
  34. is open (although it will appear to time out and sleep for a few
  35. seconds), or if it cannot reformat the track after 3 tries. You
  36. can stop the process in the middle by pressing Control-C or
  37. Control-break. 
  38.  
  39. As with any utility of this sort, safety dictates that there be a
  40. backup copy of the files somewhere. In its present incarnation,
  41. THIS PROGRAM IS INCOMPATIBLE WITH DISK CACHES AND WILL TRASH THE
  42. DISK. Please disable any caches that may exist on the system that
  43. serve that floppy. 
  44.  
  45. The Turbo C source code is included. John Newlin's article in the
  46. March/April issue of Programmer's Journal was helpful and is
  47. recommended to those who wish to better understand what was done
  48. here. Because this program assumes that it will be run on a PC or
  49. XT, certain issues (disk parameter tables, etc.) that need to be
  50. addressed in a more comprehensive disk formatting utility are not
  51. dealt with in this program. It will, in fact, run in a 1.2M drive
  52. in an AT or 386 class machine, but the disk will remain
  53. unreliably readable. 
  54.  
  55. This program is Copyright (c) Steven Fischkoff, M.D., 1989. It
  56. may be used, copied, and shared without restriction as long as
  57. you distribute the 3 files REWRITE.C, REWRITE.EXE, and
  58. REWRITE.DOC as a unit, you don't change any of the 3 files, you
  59. don't sell the program or distribute it as your own, and you
  60. don't hold me liable for data loss or other woes that may befall
  61. you as a result of the use of this software. A power glitch at
  62. the wrong time, and you will lose a track of data. Without the
  63. right file recovery utilities, and you might lose the whole disk.
  64. BACK UP BEFORE USING REWRITE!!! Naturally, you may use any pieces
  65. of the code as long as you don't simply reuse the whole thing
  66. without reasonable change (the program, after all, just basically
  67. calls standard BIOS and DOS functions to do the hard part).
  68.  
  69. Enjoy.
  70.  
  71. Comments welcome at the below E-mail addresses:
  72.  
  73.     Steven Fischkoff, M.D.
  74.     CompuServe: 76367,307
  75.     GEnie: EOSINOPHIL
  76.     Prodigy: SVBC97A
  77.  
  78. October 10, 1989
  79.